package com.wangshidai.mapper;

import com.wangshidai.entity.SysPermission;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.wangshidai.reply.rolereply.QueryPermissionTreeReply;
import org.apache.ibatis.annotations.Select;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * @Entity com.wangshidai.entity.SysPermission
 */
@Repository
public interface SysPermissionMapper extends BaseMapper<SysPermission> {
    @Select("select id,parent_id,label from sys_permission")
    List<QueryPermissionTreeReply> queryPermissionTree();



    List<SysPermission> querySysPerssionList();
    List<SysPermission> queryPreviousMenu();
    Boolean savePermission(SysPermission sysPermission);

    Boolean updatePermission(SysPermission sysPermission);
}




